package router

import (
	"OJCenter/router/api"
	"github.com/gin-gonic/gin"
)

func InitAuthorityRouter(api *api.Api, Router *gin.RouterGroup) {
	AuthorityRouter := Router.Group("authority")
	{
		AuthorityRouter.POST("createAuthority", api.CreateAuthority)         // 创建角色
		AuthorityRouter.POST("deleteAuthority", api.DeleteAuthority)         // 删除角色
		AuthorityRouter.POST("updateAuthority", api.UpdateAuthority)         // 更新角色
		AuthorityRouter.GET("getAuthorityList", api.GetAuthorityList)        // 获取角色列表
		AuthorityRouter.POST("mailAuthority", api.MailAuthority)             //获取邮箱验证码
		AuthorityRouter.POST("verifyMailAuthority", api.VerifyMailAuthority) //校验邮箱验证码

	}
}
